package main

import (
	"fsdvgw/http"
	"fsdvgw/monitor_sender"
	"fsdvgw/mqtt"
	DEATH "github.com/vrecan/death"
	"syscall"
)

func main() {
	mqtt.Start()
	http.Start()
	monitor_sender.Start()
	death := DEATH.NewDeath(syscall.SIGINT, syscall.SIGTERM)
	_ = death.WaitForDeath()
	monitor_sender.Stop()
	http.Stop()
	mqtt.Stop()
}
